//
//  CHAlertView.h
//  SanYiTeaching
//
//  Created by ChenHao on 2019/9/19.
//  Copyright © 2019 SanYi. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef enum : NSUInteger {
    AlertCauseButtonClick = 0,
    AlertSureButtonClick = 1
} AlertButtonClickIndex;

#pragma mark - 协议
@class CHAlertView;

@protocol CHAlertViewDelegate<NSObject>

- (void)alertViewDidClickButtonWithIndex:(NSInteger)index;

@end

@interface CHAlertView : UIView

@property(nonatomic, weak) id <CHAlertViewDelegate> delegate;

- (instancetype)initWithTittle:(NSString *)tittle message:(NSString *)message sureButton:(NSString *)sureBtn;

- (void)show;

@end

NS_ASSUME_NONNULL_END
